import request from "@/utils/request";
import { AxiosPromise } from "axios";

import { loginReq, LoginResp } from "./types";
export function loginWidthPWd(data: loginReq): AxiosPromise<LoginResp> {
  // 如果是form-data

  // const formData = new FormData();
  // formData.append("userTel",  "183xxxxxxx1");
  // formData.append("userPwd", "777777");

  return request({
    url: `/users/login`,
    method: "post",
    data,
    // headers: {
    //   "Content-Type": "multipart/form-data",
    // },
  });
}
